package org.dynamic.config;

import java.util.Properties;

/*
 * 
 *  @author riees
 */
public class Application {

	private String name="NC_REPORT";

	private String code="NC_REPORT";

	private static Application instance ;

	public static String PREFIX="pre_fix";

	public static String QUARTZ_DATA="QUARTZ_DATA";
	public static String QUARTZ_LOG="QUARTZ_LOG";
	public static Long TASK_COUNT = 1L;
	public static Properties properties;
	
	private Application(){
		
	}
	
	public static Application getInstance(){
		if(instance==null){
			instance = new Application();
		}
		return instance;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public String getCoreLogger(){
		return this.getName()+"-core";
	}
	
	public String getCmdLogger(){
		return this.getName()+"-cmd";
	}
	
	public String getErrorLogger(){
		return this.getName()+"-error";
	}
	
	public String getRuntimeLogger(){
		return this.getName()+"-runtime";
	}
	
}
